Next | Prev | Up | Top | Contents | Index

Registers and Register Optimization

Variables not declared volatile may be optimized to registers in the processor, since there are multiple processors. Multiple inconsistent copies of a variable may exist in registers if volatile is not declared.

Note: Use the -O compiler flag to turn optimization on. The -g compiler flag for debugging disables optimization.



Next | Prev | Up | Top | Contents | Index